package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealMapper {

   //添加套餐
   void addSetmeal(Setmeal setmeal);

   //添加套餐和检查组关系
   void addSetmealAndCheckGroupRelation(List<Map<String,Integer>> list);

   //条件查询
   Page<Setmeal> findByCondition(String queryString);

   //通过id查询套餐,同时关联检查组,和检查项
   Setmeal findById(Integer setmealId);

   List<Map<String, Object>> getSetmealCount();

   List<Map<String, Object>> findHostTop4Setmeal();
}
